<?php
// no direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );$page_heading = JTEXT::_('WRD_PROFILE_PROFILE');$title = JText::_('WMCVIP_TITLE_PREFIX').$page_heading.JText::_('WMCVIP_TITLE_SUFIX');$document = &JFactory::getDocument();$document->setTitle($title) ;//echo 'default_personal.php';
?>	<script type="text/javascript">				jQuery(document).ready(function()		{
			jQuery("#check_o_a_weekend").click(function(){				if(jQuery('input#check_o_a_weekend').is(':checked')){					jQuery('.show_o_a_weekend').removeClass('show_o_a_weekend_none');					jQuery('.show_o_a_weekend').addClass('show_o_a_weekend_block');	            }else{	            	jQuery('.show_o_a_weekend').removeClass('show_o_a_weekend_block');					jQuery('.show_o_a_weekend').addClass('show_o_a_weekend_none');	            }			});
			jQuery('#save_and_continue').click(function(){				
				jQuery('#continue').val(1);
				var values = new Array();
				jQuery.each(jQuery("input[name='hobbies[]']:checked"), function() {
				  values.push(jQuery(this).val());
				});				
				if(values.length < 3)
					alert('<?php echo JText::_('WRD_PROFILE_ALERT_PLEASE_SELECT_AT_LEAST_3_HOBBIES'); ?>');
				else{					
					jQuery('#profile-registration').submit();				} 
			});
		});
	</script>
	<style type="text/css">
		.show_o_a_weekend_none{
			display: none ;
		}
		.show_o_a_weekend_block{
			display: block ;
		}
	</style>
    
<div class="row">
<h2 class="all_reward_header"><?php echo JText::_('WRD_PROFILE_PROFILE')?></h2>
<div id="profile" class="twelve columns">
	<div style="clear: right ; height:0px;">&nbsp;</div>
	<table id="table1" width="100%" cellpadding="5" cellspacing="0" align="center">
		<tr>
			<td class="a-left title">
				<div><label for="title"><h2><?php echo JText::_('WRD_PROFILE_ACCOUNT_PREFERENCE')?></h2></label></div>
				<div class="contenttt">
                	<div class="left">
                        <strong style="color:#3E3061;"><?php echo $this->data->name_on_card; ?></strong>
                        <label for="title">
                        	<?php echo JText::_('WRD_PROFILE_BALANCE')?>
                        	 : <span class='link_color'>
                        	  <?php echo number_format($this->p_o_u->point,0,'.',',') ;?>
                        	<?php echo JText::_('WRD_PROFILE_POINTS')?> </span></label>
                    </div>
                    <div class="right">
                        <a href="<?php echo JRoute::_('index.php?option=com_wrd&view=profile&layout=myaccount&Itemid=119') ?>"><?php echo JText::_('WRD_PROFILE_VIEW_THE_SUMMARY_OF_YOUR_POINTS')?></a>
                    </div>
                </div>
			</td>
		</tr>
	</table>	<?php if($this->data->total_step != 4): ?>	<div class="alert-box wrd-message">		<?php echo JText::_('WRD_HEADER_MESSAGE_STEP2'); ?>	</div>	<?php endif; ?>
    <table id="table2" cellpadding="0" cellspacing="0" >
    	<tr>	
    <?php	
    	if($this->data->user_id != 0)
    	{
    		$step = $this->data->step;
    		if($step > 1):
                $pointstep = WrdHelper::totalPointOfEachStep($step);
            endif;
    		
    		switch ($step){
    			case 1:
    			?>
                <td><div class="radius progress success"><span class="meter" style="width: 20%; float:left;"></span><span class="meterload"><?php echo JText::_('WRD_PROFILE_PLEASE_FILL_ALL_FILEDS_OF_THIS_STEP')?></span></div></td>
    			<?php
    			break;
    			case 2:
    			?>
                <td><div class="radius progress success"><span class="meter" style="width: 40%; float:left;"></span><span class="meterload"><?php echo JText::_('WRD_PROFILE_POINT_REWARDS_IS_COMMING_TO_YOUR_ACCOUNT_BY_THIS_STEP')?></span></div></td>
    			<?php
    				break;
    			case 3:
    			?>
                <td><div class="radius progress success"><span class="meter" style="width: 60%; float:left;"></span><span class="meterload"><?php echo JText::_('WRD_PROFILE_POINTS_REWARDS')?></span></div></td>
    			<?php
    				break;
    			case 4:
    			?>
                <td><div class="radius progress success"><span class="meter" style="width: 80%; float:left;"></span><span class="meterload"><?php echo JText::_('WRD_PROFILE_POINTS_AND_FINISH')?></span></div></td>    				
    			<?php
    				break;
    			case 5:
    			?>
                <td>
                <div class="radius progress success">
                <span class="meter" id="meter100" style="width: 100%; float:left;">
                	<?php echo JText::_('WRD_PROFILE_CONGRATULATION_100_DONE')?>
                	
                </span>
                </div>
                </td>
    			<?php
    				break;
    		}
    	}
    ?>
    	</tr>
    </table>
	<form id="profile-registration" name="default_registration_form" class="form-validate" method="post" action="<?php echo JRoute::_('index.php?option=com_wrd&task=profile.save'); ?>">
	<table width="100%" id="default_registration_form" cellpadding="5" cellspacing="0" class="tblfrm">
		<tr>
			<td colspan="2" height="30">
		
            <dl class="tabs">
              <dd>
              	<a href="<?php echo JRoute::_('index.php?option=com_wrd&view=profile&layout=default&id=1&Itemid=170') ?>">
              		<?php echo JText::_('WRD_PROFILE_BASIC_INFOMATION') ?>
              	</a>
              </dd>
              <dd class="active">
              	<?php echo JText::_('WRD_PROFILE_PERSONAL_INFOMATION') ?>
              </dd>
              <dd>
              	<a href="<?php echo JRoute::_('index.php?option=com_wrd&view=profile&layout=default&id=3&Itemid=170') ?>">
              		<?php echo JText::_('WRD_PROFILE_BIZ_CONTACT') ?>
              	</a>
              </dd>
              <dd class="hide-for-small">
              	<a href="<?php echo JRoute::_('index.php?option=com_wrd&view=profile&layout=default&id=4&Itemid=170') ?>">
              		<?php echo JText::_('WRD_PROFILE_PROFESSIONALISM') ?>
              	</a>
              </dd>
            </dl>
				
			</td>
		</tr>
        <tr>
        	<td>
            <table width="90%" align="center" id="table1_02">
				<div class="reg_tips" >
          			<div class="reg_tip_content">
          				<?php echo JText::_('WRD_PROFILE_STEP2_FILLING_ALL_FIELDS_TIP')?>
          			</div>
          		</div>
                <tr>
                    <td class="three">
                        <label for="title"><?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['status']['caption'])); ?></label>
                    </td>
                    <td>
                        <?php echo $this->lists['status']; ?>
                        <?php if(!empty($this->configField['status']['f_tip'])):?>
                            <span class="hint"><?php echo $this->configField['status']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
                <tr style="display: none;">
                    <td valign="top">
                        <label for="title"><?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['social']['caption'])); ?></label>
                    </td>
                    <td>
                        <table class="socialbtn">
                            <tr>
                                <td width="20">
                                    <input type="checkbox" <?php echo $this->social['facebook'] != ''? 'checked="checked"':'';?> title="type" maxlength="50" size="50" value="facebook" id="facebook" name="social[]" class="facebook" />
                                </td>
                                <td><img src="<?php echo $this->icons_path; ?>facebook.png" alt="Facebook" title="Facebook" /></td>
                                <td width="20"><input type="checkbox" <?php echo $this->social['twitter'] != ''? 'checked="checked"':'';?> title="type" maxlength="50" size="50" value="twitter" id="twitter" name="social[]" class="twitter" /> </td>
                                <td><img src="<?php echo $this->icons_path; ?>twitter.png" alt="Twitter" title="Twitter" /></td>
                                <td width="20"><input type="checkbox" <?php echo $this->social['flickr'] != ''? 'checked="checked"':'';?> title="type" maxlength="50" size="50" value="flickr" id="flickr" name="social[]" class="flickr" /> </td>
                                <td><img src="<?php echo $this->icons_path; ?>flickr.png" alt="Flickr" title="Flickr" /></td>
                                <td width="20"><input type="checkbox" <?php echo $this->social['myspace'] != ''? 'checked="checked"':'';?> title="type" maxlength="50" size="50" value="myspace" id="myspace" name="social[]" class="myspace" /> </td>
                                <td><img src="<?php echo $this->icons_path; ?>myspace.png" alt="Myspace" title="Myspace" /></td>
                                <td width="20"><input type="checkbox" <?php echo $this->social['linkedin'] != ''? 'checked="checked"':'';?> title="type" maxlength="50" size="50" value="linkedin" id="linkedin" name="social[]" class="linkedin" /> </td>
                                <td colspan="3"><img src="<?php echo $this->icons_path; ?>linkedin.png" alt="Linkedin" title="Linkedin" /></td>
                            </tr>
                            
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="title"><?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['website']['caption'])); ?></label>
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->website; ?>" id="website" name="website" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_website_TIP')); ?>" class="five has-tip tip-right noradius" />
                        <?php if(!empty($this->configField['website']['f_tip'])):?>
                        <span class="hint"><?php echo $this->configField['website']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span> 
                        <?php endif ; ?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <img src="<?php echo $this->icons_path; ?>skype.png" alt="Skype" title="Skype" />
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->skype; ?>" id="skype" name="skype" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_SKYPE_TIP')); ?>" class="five has-tip tip-right noradius"  />
                        <?php if(!empty($this->configField['skype']['f_tip'])):?>
                            <span class="hint"><?php echo $this->configField['skype']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <img src="<?php echo $this->icons_path; ?>yahoo.png" alt="Yahoo" title="Yahoo" />
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->yahoo; ?>" id="yahoo" name="yahoo" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_YAHOO_TIP')); ?>" class="five has-tip tip-right noradius"  /> 
                        <?php if(!empty($this->configField['yahoo']['f_tip'])):?>
                        <span class="hint"><?php echo $this->configField['yahoo']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <img src="<?php echo $this->icons_path; ?>gtalk.png" alt="Gtalk" title="Gtalk" />
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->gtalk; ?>" id="gtalk" name="gtalk" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_GTALK_TIP')); ?>" class="five has-tip tip-right noradius" /> 
                        <?php if(!empty($this->configField['gtalk']['f_tip'])):?>
                        <span class="hint"><?php echo $this->configField['gtalk']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <img src="<?php echo $this->icons_path; ?>msn.png" alt="Window live" title="Window live" />
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->msn; ?>" id="msn" name="msn" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_MSN_TIP')); ?>" class="five has-tip tip-right noradius" /> 
                        <?php if(!empty($this->configField['msn']['f_tip'])):?>
                            <span class="hint"><?php echo $this->configField['msn']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
				<tr>
                    <td>
                        <img src="<?php echo $this->icons_path; ?>facebook.png" alt="Facebook" title="Facebook" />
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->facebook; ?>" id="facebook" name="facebook" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_FACEBOOK_TIP')); ?>" class="five has-tip tip-right noradius" /> 
                        <?php if(!empty($this->configField['facebook']['f_tip'])):?>
                            <span class="hint"><?php echo $this->configField['facebook']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="title"><strong><?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_Hobbies'))?></strong></label>
                    </td>
                </tr>
                <!-- Script to show/hide child item -->
                    <style type='text/css'>
                        .d-block{
                            display: block ;
                        }
                        .d-none{
                            display: none ;
                        }
                    </style>
                    <script>
                    jQuery.noConflict();
                    jQuery(document).ready(function(){
                        <?php foreach($this->all_hobbies as $hobbies): ?>
                            if(jQuery('#item<?php echo $hobbies->id ; ?>').is(":checked"))
                            {
                                jQuery('#item<?php echo $hobbies->id ; ?>').removeClass('d-none');
                                jQuery('#item<?php echo $hobbies->id ; ?>').addClass('d-block');
                                jQuery('.child_item<?php echo $hobbies->id ; ?>').removeClass('d-none');
                                jQuery('.child_item<?php echo $hobbies->id ; ?>').addClass('d-block');
                            }
                            jQuery('#item<?php echo $hobbies->id ; ?>').click(function() {
                                    if(jQuery('#item<?php echo $hobbies->id ; ?>').is(":checked"))
                                    {
                                        jQuery('.child_item<?php echo $hobbies->id ; ?>').removeClass('d-none');
                                        jQuery('.child_item<?php echo $hobbies->id ; ?>').addClass('d-block');
                                    }else{
                                        jQuery('.child_item<?php echo $hobbies->id ; ?>').removeClass('d-block');
                                        jQuery('.child_item<?php echo $hobbies->id ; ?>').addClass('d-none');
                                    }
                                });
                            
                        <?php endforeach;?>
                    });
                </script>
                <!-- End script to show/hide child item -->
                
                <tr>
                    <td colspan="2">
                        <table style="padding-left:3px ; " class="hobbiesform">
                            <tr>
                                <?php  
                                $i=0;
                                foreach($this->list_hobbies as $hobbies):
                                    if(($i!=0) && ($i%3 ==0)):
                                ?>
                                    </tr>
                                    <tr>
                                <?php 
                                    endif;
                                ?>
                                        <td>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <?php 
                                                            $tt = $hobbies->id;
                                                        ?>
                                                        <input type="checkbox" <?php echo $this->u_hobbies[$tt] != ''? 'checked="checked"':'';?> value="<?php echo $hobbies->id; ?>" name="hobbies[]" class="hobbies" id="item<?php echo $hobbies->id ; ?>" />
                                                    </td>
                                                    <td>
                                                        <?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$hobbies->hobbies_name)) ; ?>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                <?php 
                                    $i++;
                                endforeach;
                                ?>
                            </tr>
                        </table>
                        <table class="musicform">
                            <tr>
                                <td>
                                    <?php 
                                        foreach($this->all_hobbies as $a_hobbies): 
                                        $j=0;
                                        $flag = $this->list_child_hobbies[$a_hobbies->id] ;
                                        if(count($flag) > 0) : 		
                                    ?>
                                        <table class="d-none child_item<?php echo $a_hobbies->id ; ?> title" align="center">
                                            <tr>
                                                <td>
                                                    <?php echo "<b> ".JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->hobbi_name[$a_hobbies->id]->title))." </b>" ; ?>
                                                </td>
                                            </tr>
                                        </table>
                                        <table class="d-none child_item<?php echo $a_hobbies->id ; ?> musictable">
                                            <tr>
                                                <?php  
                                                foreach($flag as $child_hobbies):
                                                    if(($j!=0) && ($j%3 ==0)):
                                                ?>
                                                    </tr>
                                                    <tr>
                                                <?php 
                                                    endif;
                                                ?>
                                                    <td>
                                                        <table class="d-none child_item<?php echo $child_hobbies->parent_id ; ?>">
                                                            <tr>
                                                                <td>
                                                                    <input type="checkbox" <?php echo $this->u_hobbies[$child_hobbies->id] != ''? 'checked="checked"':'';?> value="<?php echo $child_hobbies->id ; ?>" name="hobbies[]" class="hobbies" id="item<?php echo $child_hobbies->id ; ?>" />
                                                                </td>
                                                                <td>
                                                                    <?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$child_hobbies->hobbies_name)) ; ?>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                <?php 
                                                    $j++;
                                                    endforeach;
                                                ?>
                                            </tr>
                                        </table>
                                    <?php 
                                        endif ;
                                        endforeach;
                                    ?>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="title">
                            <?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['other_hobbies']['caption'])); ?>
                        </label>
                    </td>
                    <td>
                        <input type="text" maxlength="50" size="50" value="<?php echo $this->data->other_hobbies; ?>" id="other_hobbies" name="other_hobbies" title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_other_hobbies_TIP')); ?>" class="five has-tip tip-right noradius" /> 
                        <?php if(!empty($this->configField['other_hobbies']['f_tip'])):?>
                            <span class="hint"><?php echo $this->configField['other_hobbies']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="title">
                            <?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['own_car']['caption'])); ?>
                        </label>
                    </td>
                    <td class="radiobtn">
                        <span><input type="radio" <?php if($this->data->own_car == 1){ echo "checked='checked'" ; } ?> maxlength="50" size="50" value="<?php echo ($this->data->own_car)?$this->data->own_car:1;?>" name="own_car" /><?php echo JText::_('WRD_PROFILE_STEP2_OWN_CAR_YES'); ?></span>
                        <span><input type="radio" <?php if($this->data->own_car == 0){ echo "checked='checked'" ; } ?> maxlength="50" size="50" value="<?php echo (!$this->data->own_car)?$this->data->own_car:0;?>" name="own_car" /><?php echo JText::_('WRD_PROFILE_STEP2_OWN_CAR_NO'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="title"><?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['num_children']['caption'])); ?></label>
                    </td>
                    <td>
                        <?php echo $this->lists['numChild']; ?>
                        <?php if(!empty($this->configField['num_children']['f_tip'])):?>
                            <span class="hint"><?php echo $this->configField['num_children']['f_tip']; ?><span class="hint-pointer">&nbsp;</span></span>
                        <?php endif ; ?>
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2">
                        <label for="title"><?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$this->configField['weekend_action']['caption'])); ?></label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table class="weekendtable">
                            <tr>
                            <?php 
                            $tr=0;
                            foreach($this->list_aweekend as $aweekend):
                                if(($tr!=0) && ($tr%3 ==0)):
                            ?>
                                </tr>
                                <tr>
                            <?php 
                                endif;
                            ?>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <?php 
                                                    $trt = $aweekend->value;
                                                ?>
                                                <input type="checkbox" <?php echo $this->u_act_w[$aweekend->value] != ''? 'checked="checked"':'';?> value="<?php echo $aweekend->value ; ?>" name="weekend_action[]" class="aweekend" id="item<?php echo $aweekend->value ; ?>" />
                                            </td>
                                            <td>
                                                <?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_'.$aweekend->text)); ?>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                
                            <?php 
                                
                                $tr++;
                            endforeach;
                                if(($tr!=0) && ($tr%3 ==0)):
                                ?>
                                </tr>
                                    <tr>
                                        <td>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <input type="checkbox" <?php echo $this->data->o_a_weekend != '' ? 'checked="checked"':'';?> value="" id='check_o_a_weekend' name='check_o_a_weekend' />
                                                    </td>
                                                    <td><?php echo JText::_('WRD_PROFILE_PROFILE_OTHERS') ?></td>
                                                </tr>
                                            </table>
                                        </td>
                                <?php 
                                else:
                                ?>
                                    <td>
                                        <table>
                                            <tr>
                                                <td>
                                                    <input type="checkbox" <?php echo $this->data->o_a_weekend != '' ? 'checked="checked"':'';?> value="" id='check_o_a_weekend' name='check_o_a_weekend' />
                                                </td>
                                                <td><?php echo JText::_('WRD_PROFILE_PROFILE_OTHERS') ?></td>
                                            </tr>
                                        </table>
                                    </td>
                                <?php 	
                                endif;
                                ?>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr class='show_o_a_weekend <?php if(empty($this->data->o_a_weekend)){ echo ' show_o_a_weekend_none';}?>'>
                    <td>
                        <input type="text" value="<?php echo $this->data->o_a_weekend ; ?> " id='o_a_weekend' size="45" maxlength="45" name='o_a_weekend' title="<?php echo JText::_(WrdHelper::stringURLSafeAliasLang('WRD_PROFILE_STEP2_o_a_weekend_TIP')); ?>" class="has-tip tip-right noradius" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="button" value="<?php echo JText::_('WRD_PROFILE_SAVE_CONTINUE') ?>" id="save_and_continue" name="save_and_continue" class="button_save_and_continue bt" />
                        <!--<input type="button" value="<?php //echo JText::_('WRD_PROFILE_FINISH') ?>" id="finish" name="finish" class="button_finish bt" />-->
                    </td>
                </tr>
                </table>
            </td>
         </tr>
	</table>
	<input type="hidden" name="profile" value="<?php echo $this->data->id ?>">
	<input type="hidden" name="option" value="com_wrd">
	<input type="hidden" name="task" value="profile.save">
	<input type="hidden" id="continue" name="continue" value="">
	<?php echo JHtml::_('form.token');?>
</form>

</div>
</div>